package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface DepartmentRepository extends MongoRepository<Department,String> {

//    查询是以find开头 后边的条件首字母大写 连接字符大写
    Department findByHoscodeAndDepcode(String hoscode, String department);
}
